Secure Payment Links are designed to be embedded within an iframe hosted on a trusted domain. These links are not accessible directly in a browser tab and are ideal for use cases where users need a secure and contained environment, such as saving payment methods.
✅ How Secure Payment Links Work
When secure payment links are enabled:
Two URLs are returned:
An open link: usable in standard browsers.
A secure link: intended for embedding within an iframe.
The domain hosting the iframe must match one of the trusted domains configured in your business profile’s allowed_domains list.
🔧 Step 1: Configure allowed_domains in Business Profile
To enable secure payment links, first set up the list of trusted domains (e.g., localhost:5500):
Once the trusted domains are configured, create a payment link using the standard Payments Create API. This response will include both open and secure versions of the link.